import request from '@/utils/request'

// 查询用户补发诉求列表
export function listAiHairstyleDemands(query) {
  return request({
    url: '/business/aiHairstyleDemands/list',
    method: 'get',
    params: query
  })
}

// 查询用户补发诉求详细
export function getAiHairstyleDemands(id) {
  return request({
    url: '/business/aiHairstyleDemands/' + id,
    method: 'get'
  })
}

// 新增用户补发诉求
export function addAiHairstyleDemands(data) {
  return request({
    url: '/business/aiHairstyleDemands',
    method: 'post',
    data: data
  })
}

// 修改用户补发诉求
export function updateAiHairstyleDemands(data) {
  return request({
    url: '/business/aiHairstyleDemands',
    method: 'put',
    data: data
  })
}

// 删除用户补发诉求
export function delAiHairstyleDemands(id) {
  return request({
    url: '/business/aiHairstyleDemands/' + id,
    method: 'delete'
  })
}
